import {createRouter, createWebHistory} from 'vue-router'


const routes = [
    {
        path: '/login',
        name: 'Login',
        component: () => import(/* webpackChunkName: "about" */ '../views/LoginView.vue')
    },
    {
        path: '/register',
        name: 'Register',
        component: () => import(/* webpackChunkName: "about" */ '../views/RegisterView.vue')
    },
    {
        path: '/front',
        name: "Front",
        component: () => import('../views/FrontView.vue'),
        children: [
            {
                path: '/basic',
                name: 'Basic',
                component: () => import('../views/BasicView.vue')
            },
            {
                path: '/auth',
                name: 'Auth',
                component: () => import('../views/AuthView.vue')
            },
        ]
    }
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router
